using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace fenk.Ventas
{
    public partial class MenuNotasCredito : Form
    {
        private string selectionClause = string.Empty;
        private string invoiceType = string.Empty;
        public string SelectionClause
        {
            get
            {
                return selectionClause;
            }
        }
        public string InvoiceType
        {
            get
            {
                return invoiceType;
            }
        }
        public MenuNotasCredito()
        {
            InitializeComponent();
        }

        private void bManuales_Click(object sender, EventArgs e)
        {

            selectionClause = "WITH CODIGO = F] OR = F] OR = C] AND WITH BAJA # S AND WITH 4 = N";
            invoiceType = "Manuales F4/F9(A); G4/G9(B) o C4/C9(C.F.)";
            this.Close();
        }

        private void bElectronicas_Click(object sender, EventArgs e)
        {
            selectionClause = "WITH CODIGO = A] OR = B] AND WITH BAJA # S AND WITH 4 = N";
            invoiceType = "Electronicas A4/A9(A) y B4/B9(B)";
            this.Close();
        }

        private void bElectronicasExpo_Click(object sender, EventArgs e)
        {
            selectionClause = "WITH CODIGO = E] AND WITH BAJA # S AND WITH 4 = N";
            invoiceType = "Electronicas E4/E9 (Exportacion A)";
            this.Close();
        }
        
        private void bWeb_Click(object sender, EventArgs e)
        {
            selectionClause = "WITH 2 = 4A OR = 4B AND WITH BAJA # S AND WITH 4 = N";
            invoiceType = "Web service 4A/9A (NC A) y 4B/9B (NC B)";
            this.Close();
        }

        private void bWebExpo_Click(object sender, EventArgs e)
        {
            selectionClause = "WITH 2 = 4E AND WITH BAJA # S AND WITH 4 = N";
            invoiceType = "Web service 4E/9E (NC Expo A)";
            this.Close();
        }
    }
}